package com.ren.fm.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;



/**
 * <p>
 * 
 * </p>
 *
 * @author RZY
 * @since 2022-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ReclFm对象", description="")
@TableName("recl_fm")
public class ReclFm implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "fm唯一id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    @Id
    private Long id;

    @ApiModelProperty(value = "上传用户id")
    @JsonProperty(value = "upload_user_id")
    private Long uploadUserId;

    @ApiModelProperty(value = "fm音频对应oss地址")
    @JsonProperty(value = "fm_url")
    private String fmUrl;

    @ApiModelProperty(value = "fm所属心情")
    @JsonProperty(value = "fm_mood")
    private String fmMood;

    @ApiModelProperty(value = "fm作者签名")
    @JsonProperty(value = "fm_sign")
    private String fmSign;

    @ApiModelProperty(value = "fm标题")
    @JsonProperty(value = "fm_title")
    private String fmTitle;

    @ApiModelProperty(value = "fm封面图片对应oss地址")
    @JsonProperty(value = "fm_cover")
    private String fmCover;

    @ApiModelProperty(value = "fm收藏量")
    @JsonProperty(value = "fm_collection_count")
    private Long fmCollectionCount;

    @ApiModelProperty(value = "fm浏览量")
    @JsonProperty(value = "fm_view_count")
    private Long fmViewCount;

    @ApiModelProperty(value = "fm评论量")
    @JsonProperty(value = "fm_comment_count")
    private Long fmCommentCount;

    @ApiModelProperty(value = "fm点赞量")
    @JsonProperty(value = "fm_praise_count")
    private Long fmPraiseCount;

    @ApiModelProperty(value = "当前状态(‘Draft’代表审核中， ’remove‘代表下架， ‘Modify’代表内容不符需修改， ‘Verify’代表已上架)")
    @JsonProperty(value = "status")
    private String status;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @JsonProperty(value = "is_deleted")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty(value = "gmt_create")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty(value = "gmt_modified")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
